<template>
  <div class="home">
    首页
     <button @click="replaceRouter">replace</button>
  </div>
</template>

<script>
// @ is an alias to /src

export default {
  name: 'Home',
  methods: {
    replaceRouter () {
      this.$router.replace({
        path: '/app-vue1'
      })
    }
  }
}
</script>
